﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.collections {
    import reprise.ui.*;
    import reprise.controls.*;
    import net.wooga.pets.utils.*;

    public class CollectionStatusDisplay extends UIComponent {

        private var _content:UIComponent;
        private var _title:Label;

        override protected function initialize():void{
            cssID = "collectionStatus";
            super.initialize();
            this.reset();
        }
        public function open():void{
            this._content.addCSSClass("open");
            show();
        }
        public function close(_arg1:Boolean=true):void{
            if (_arg1){
                this._content.removeCSSClass("open");
            } else {
                hide();
            };
        }
        public function setTitle(_arg1:String):void{
            this._title.setLabel(_arg1);
        }
        public function get content():UIComponent{
            return (this._content);
        }
        public function reset():void{
            Displays.removeAllChildren(this._content);
            this._content = RepriseUtils.addComponent(this, "content");
            this._title = RepriseUtils.addLabel(this._content, "title", "");
            mouseChildren = false;
            mouseEnabled = true;
        }

    }
}//package net.wooga.pets.views.collections 
